package com.xinan.utils;


import java.io.*;
import java.util.*;

// Referenced classes of package com.velcro.base.util:
//            StringHelper

public class PropertiesHelper
{


    public static Properties loadProperty(String file)
    {
        InputStream in;
        Properties props;
        in = PropertiesHelper.class.getResourceAsStream(file);
        props = null;
        props = new Properties();
        try
        {
            props.load(in);
        }
        catch(IOException e)
        {
            System.out.println("load "+file+" failed..........");
            e.printStackTrace();
        }
        if(in != null)
            try
            {
                in.close();
            }
            catch(Exception exception1) { }
        if(in != null)
            try
            {
                in.close();
            }
            catch(Exception exception2) { }
        if(in != null)
            try
            {
                in.close();
            }
            catch(Exception exception3) { }
        return props;
    }
}
